<admintpl file="header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li><a href="{:U('Businessactivity/index')}">活动列表</a></li>
			<li class="active"><a href="{:U('Businessactivity/recommend')}">活动轮播图管理</a></li>
		</ul>
		<form method="post" class="js-ajax-form">
			<php> $status=array("1"=>L('DISPLAY'),"0"=>L('HIDDEN')); </php>
			<table class="table table-hover table-bordered table-list">
				<thead>
					<tr>
						<th width="50">ID</th>
						<th>活动名称</th>
						<th>所属商户名称</th>
						<th>开始时间</th>
						<th>结束时间</th>
						<th>图片</th>
						<th width="120">{:L('ACTIONS')}</th>
					</tr>
				</thead>
				<tbody>
					<foreach name="recommends" item="vo">
					<tr>
						<td>{$vo.id}</td>
						<td>{$vo.name}</td>
						<td>{$vo.business_name}</td>
						<td>{$vo.start_time|date="Y-m-d",###}</td>
						<td>{$vo.end_time|date="Y-m-d",###}</td>
						<td><img src="{:sp_get_image_preview_url($vo['image'])}" width="60" height="60"/></td>
						<td>
							<a href="{:U('Businessactivity/recommendEdit',array('id'=>$vo['id']))}">编辑</a> |
							<a href="{:U('Businessactivity/recommendDelete',array('id'=>$vo['id']))}" class="js-ajax-delete">{:L('DELETE')}</a>
						</td>
					</tr>
					</foreach>
				</tbody>
			</table>
		</form>
		<div class="pagination">{$page}</div>
	</div>
	<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>